package org.example.java.util.concurrency.lock;

public class ListReader implements Runnable {
  Data myData;

  public ListReader(Data myData) {
    super();
    this.myData = myData;
  }

  public void run() {
    for (int i = 1; i < 4; i++) {
      myData.readData();
    }
  }
}